﻿using SqlSugar;
using System;
namespace Learun.Application.TwoDevelopment.ZZDT_EC

{
    /// <summary>
    /// 版 本 PIT-ADMS V7.0.3 敏捷开发框架
    /// Copyright (c) 2013-2018 Hexagon PPM
    /// 创 建：超级管理员
    /// 日 期：2022-02-24 11:12
    /// 描 述：对象类型属性表
    /// </summary>
    [SugarTable(TableName = "ec_objecttypep")]
    public class ec_objecttypepEntity
    {
        #region 实体成员
        /// <summary>
        /// 对象类型属性ID
        /// </summary>
        /// <returns></returns>
        [SugarColumn(IsPrimaryKey = true)]
        public string ObjectTypePID { get; set; }
        /// <summary>
        /// 对象类型ID，<see cref="ec_objecttypeEntity.ObjectTypeID"/>
        /// </summary>
        /// <returns></returns>
        public string ObjectTypeID { get; set; } = "";
        /// <summary>
        /// 属性ID，<see cref="ec_propertyEntity.PropertyID"/>
        /// </summary>
        /// <returns></returns>
        public string PropertyID { get; set; } = "";
        #endregion

        #region 扩展操作
        /// <summary>
        /// 新增调用
        /// </summary>
        public void Create()
        {
            this.ObjectTypePID = Guid.NewGuid().ToString();
        }
        /// <summary>
        /// 编辑调用
        /// </summary>
        /// <param name="keyValue"></param>
        public void Modify(string keyValue)
        {
            this.ObjectTypePID = keyValue;
        }
        #endregion

        #region 扩展字段


        /// <summary>
        /// 属性组ID
        /// </summary>
        /// <returns></returns>
        [SugarColumn(IsIgnore = true)]
        public string PropertyGID { get; set; }


        /// <summary>
        /// 常用属性 或 不常用属性
        /// </summary>
        /// <returns></returns>
        [SugarColumn(IsIgnore = true)]
        public bool BasicGroup { get; set; } = true;
        /// <summary>
        /// 属性组名称
        /// </summary>
        /// <returns></returns>
        [SugarColumn(IsIgnore = true)]
        public string PropertyGroupName { get; set; }
        /// <summary> 
        /// 属性名称 
        /// </summary> 
        [SugarColumn(IsIgnore = true)]
        public string PropertyName { get; set; }
        /// <summary> 
        /// 属性名称(英文)
        /// </summary> 
        [SugarColumn(IsIgnore = true)]
        public string PropertyNameEN { get; set; }
        /// <summary> 
        /// 属性类型 
        /// </summary> 
        [SugarColumn(IsIgnore = true)]
        public string PropertyType { get; set; }
        /// <summary> 
        /// 小数点 
        /// </summary> 
        [SugarColumn(IsIgnore = true)]
        public int? DecimalPoint { get; set; }
        /// <summary> 
        /// 枚举数据 
        /// </summary> 
        [SugarColumn(IsIgnore = true)]
        public string EnumData { get; set; }
        /// <summary>
        /// 枚举数据字典名称
        /// </summary>
        /// <returns></returns>
        [SugarColumn(IsIgnore = true)]
        public string EnumDataCode { get; set; }
        /// <summary> 
        /// 计量单位分类名称
        /// </summary> 
        [SugarColumn(IsIgnore = true)]
        public string MeasuringUnitTypeName { get; set; }
        /// <summary> 
        /// 默认计量单位名称
        /// </summary> 
        [SugarColumn(IsIgnore = true)]
        public string DefaultUnitName { get; set; }
        /// <summary> 
        /// 计量单位分类ID 
        /// </summary> 
        [SugarColumn(IsIgnore = true)]
        public string MeasuringUnitTypeID { get; set; }
        /// <summary> 
        /// 默认计量单位ID
        /// </summary> 
        [SugarColumn(IsIgnore = true)]
        public string DefaultUnit { get; set; }
        /// <summary> 
        /// 默认值
        /// </summary> 
        [SugarColumn(IsIgnore = true)]
        public string DefaultValue { get; set; }
        #endregion
    }
}

